<template>
     <div class="function8" v-loading.fullscreen.lock="fullscreenLoading">

        <p class="function1_title1">基本信息</p>
        <div class="function1_content1">
            <div class="function1_content1_left">
                    <el-avatar :size="60" :src="info.headPic" />
                    <div class="function1_content1_left_info1">
                        <h4 class="function1_content1_left_info1_name1">{{ info.nickname }} </h4>
                        <div class="function1_content1_left_info1_name2">
                                <p>手机号：{{ info.mobile }}</p>
                                <p>身份：{{types[info.types] }}

                                </p>
                                <p>状态：{{ status[info.status] }}</p>
                                <p>注册时间：{{ info.createTime }}</p>
                        </div>
                    </div>
            </div>
            <div>
            </div>
        </div>

    </div>


</template>
<script>
    
export default {
    data() {
        return {
            id: this.$route.params.id,
            param:{},
            info:{},
            types:{1:'机构',2:'协会',3:'球队',4:'自由球员',5:'普通用户'},
            status:{1:'正常',2:'冻结',3:'注销'},
        }
    },

    created() {
    this.getData()
    },

    mounted() {
    },

    components: {
    },

    methods: {
        getData() {
            let that = this;
            that.fullscreenLoading = true;
                this.param.userId=this.id;
            that.$api.userinfo(this.param).then(res=>{
                if (res) {
                    that.info = res;
                }
                that.fullscreenLoading = false;
            })

        },



    }

}


</script>
<style lang="scss" scoped>
.function8 {
    // bgf padd20
    background-color: #fff;
    padding: 20px;

    .function1_title1 {
        padding-left: 10px;
        display: inline-block;
        line-height: 20px;
        font-size: 14px;
        color: #242424;
        border-left: 4px solid #006DFF;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
    }

    .function1_content1 {
        display: flex;
        justify-content: space-between;
        padding: 20px 0;
        border-bottom: 1px solid #EFEFEF;

        .function1_content1_left {
            display: flex;
            align-items: center;

            .function1_content1_left_info1 {
                padding-left: 16px;

                .function1_content1_left_info1_name1 {
                    font-size: 16px;
                    text-align: left;
                }

                .function1_content1_left_info1_name2 {
                    padding-top: 10px;
                    text-align: left;
                    color: #9a9a9a;
                    .function1_content1_left_info1_name2_content1{
                        margin-top: 5px;
                    }
                }
            }
        }

        .function1_content1_button1 {
            width: 110px;
        }

        .function1_content1_button2 {
            width: 110px;
        }
    }
}

</style>